home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9823 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: seagull.rtd.com!collins
  2. From: collins@RTD.COM (Ronald Collins)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Standard question - pointer initialization
  5. Date: 13 Mar 1996 20:51:35 GMT
  6. Organization: RTD Internet Access
  7. Message-ID: <4i7cgn$5da@baygull.rtd.com>
  8. References: <4hk9un$906@hammer.msfc.nasa.gov> <4hl6rr$nde@news.xs4all.nl> <313E6028.1C19@ix.netcom.com> <4hnpsl$g8c@hacgate2.hac.com> <4hq9hsINN998@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: seagull.rtd.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Kazimir Kylheku (c2a192@ugrad.cs.ubc.ca) wrote:
  13.  
  14. : Also note that NULL is just a macro that stands for the value zero (often
  15. : accompanied by a cast to void *). In assigning default initialization values to
  16. : static variables, the compiler couldn't care less that there is a pre-processor
  17. : macro called NULL. NULL can never be anything other than zero in a
  18. : standard-conforming implementation of the C language.
  19.  
  20. This may be true on _your_ implementation, but nothing in the standard
  21. requires the NULL value to be numerically 0.
  22.  
  23. Please read the FAQ before posting on the subject again.
  24.  
  25.         -- collins --
  26.  
  27.